home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / grep16.zip / MAKEFILE < prev    next >
Text File  |  1993-02-25  |  683b  |  31 lines

  1. #
  2. # Makefile for GNU e?grep
  3. #
  4. # NT port by Michael Caldwell (mcaldwel@netcom.com).
  5. #
  6.  
  7. !include <ntwin32.mak>
  8.  
  9. .c.obj:
  10.     $(cc) $(cflags) $(cvars) -DSTDC_HEADERS $*.c
  11.     $(cvtobj) $*.obj
  12.  
  13. OBJS = alloca.obj dfa.obj regex.obj getopt.obj
  14. GOBJ = grep.obj
  15. EOBJ = egrep.obj
  16. setargv = \mstools\lib\setargv.obj
  17.  
  18. all:        grep.exe egrep.exe
  19.  
  20. grep.exe:    $(OBJS) $(GOBJ)
  21.    $(link) $(conflags) -out:grep.exe $(OBJS) $(GOBJ) $(setargv) $(conlibs)
  22.  
  23. egrep.exe:    $(OBJS) $(EOBJ)
  24.    $(link) $(conflags) -out:egrep.exe $(OBJS) $(EOBJ) $(setargv) $(conlibs)
  25.  
  26. egrep.obj:    grep.c
  27.     $(cc) $(cflags) $(cvars) -DEGREP -DSTDC_HEADERS grep.c
  28.     $(cvtobj) $*.obj
  29.  
  30. $(OBJS) $(GOBJ) $(EOBJ):    *.h
  31.